﻿Imports System.Windows.Forms

Public Class frmDateTime

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        SaveWindowPos(REGAPP, Me)
        SaveControlValues(REGAPP, Me)
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub frmParamStats_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        GetWindowPos(REGAPP, Me)
        GetControlValues(REGAPP, Me)
        cboRegGroup.Items.Clear()
        cboRegGroup.Items.AddRange(Project.DB.GetRecordList("Criteria", "RegGroup").ToArray)
        GetControlValue(REGAPP, cboRegGroup)
    End Sub

    Private Sub chkHighlightExcursions_CheckedChanged(sender As Object, e As EventArgs) Handles chkHighlightExcursions.CheckedChanged
        lblRegGroup.Enabled = chkHighlightExcursions.Checked
        cboRegGroup.Enabled = lblRegGroup.Enabled
    End Sub
End Class
